<!DESCRIPTION>A script that causes a link to the "followed" as soon as the surfer moves the mouse over it (as opposed to clicking it). Unlike the first version, this one loads the target URL in a secondary window instead. Great if the links are to another site, and you don't want to "lose your visitors."
<!/DESCRIPTION>
<!CATEGORY>links<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<script>
function loadfollow(which){
if (!window.win2||win2.closed)
win2=window.open(which.href)
else
win2.location=which.href
}
</script>
<a href="http://www.javascriptkit.com" onMouseover="loadfollow(this)">Click here to go back home!</a>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<script>
function loadfollow(which){
if (!window.win2||win2.closed)
win2=window.open(which.href)
else
win2.location=which.href
}
</script>
<a href="http://www.javascriptkit.com" onMouseover="loadfollow(this)">Click here to go back home!</a>